<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        fn(parseInt(prompt()),parseInt(prompt()))

function fn(a,b){
    for(var j=a;j<=b;j++){
var count = 0;
for(var i=1;i<=j;i++){
 
    if(j%i==0){
    
        count++;
    }
}
if(count==2){
    console.log(j +"是质数");
}else{
   
}

}
}

    </script>
</body>
</html>